class AiWarningitemBean {
  AiWarningitemBean({
    this.total,
    this.list,
    this.pageNum,
    this.pageSize,
    this.size,
    this.startRow,
    this.endRow,
    this.pages,
    this.prePage,
    this.nextPage,
    this.isFirstPage,
    this.isLastPage,
    this.hasPreviousPage,
    this.hasNextPage,
    this.navigatePages,
    this.navigatepageNums,
    this.navigateFirstPage,
    this.navigateLastPage,
  });

  AiWarningitemBean.fromJson(dynamic json) {
    total = json['total'];
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(AiWarningItemList.fromJson(v));
      });
    }
    pageNum = json['pageNum'];
    pageSize = json['pageSize'];
    size = json['size'];
    startRow = json['startRow'];
    endRow = json['endRow'];
    pages = json['pages'];
    prePage = json['prePage'];
    nextPage = json['nextPage'];
    isFirstPage = json['isFirstPage'];
    isLastPage = json['isLastPage'];
    hasPreviousPage = json['hasPreviousPage'];
    hasNextPage = json['hasNextPage'];
    navigatePages = json['navigatePages'];
    navigatepageNums = json['navigatepageNums'] != null
        ? json['navigatepageNums'].cast<num>()
        : [];
    navigateFirstPage = json['navigateFirstPage'];
    navigateLastPage = json['navigateLastPage'];
  }
  num? total;
  List<AiWarningItemList>? list;
  num? pageNum;
  num? pageSize;
  num? size;
  num? startRow;
  num? endRow;
  num? pages;
  num? prePage;
  num? nextPage;
  bool? isFirstPage;
  bool? isLastPage;
  bool? hasPreviousPage;
  bool? hasNextPage;
  num? navigatePages;
  List<num>? navigatepageNums;
  num? navigateFirstPage;
  num? navigateLastPage;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = total;
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    map['pageNum'] = pageNum;
    map['pageSize'] = pageSize;
    map['size'] = size;
    map['startRow'] = startRow;
    map['endRow'] = endRow;
    map['pages'] = pages;
    map['prePage'] = prePage;
    map['nextPage'] = nextPage;
    map['isFirstPage'] = isFirstPage;
    map['isLastPage'] = isLastPage;
    map['hasPreviousPage'] = hasPreviousPage;
    map['hasNextPage'] = hasNextPage;
    map['navigatePages'] = navigatePages;
    map['navigatepageNums'] = navigatepageNums;
    map['navigateFirstPage'] = navigateFirstPage;
    map['navigateLastPage'] = navigateLastPage;
    return map;
  }
}

class AiWarningItemList {
  AiWarningItemList({
    this.currentPage,
    this.pageSize,
    this.id,
    this.arkimeId,
    this.esId,
    this.sip,
    this.spt,
    this.dip,
    this.dpt,
    this.xffIp,
    this.arkimeStartTime,
    this.arkimeEndTime,
    this.protocols,
    this.uri,
    this.warnTime,
    this.sceneType,
    this.tcpFlagsAck,
    this.tcpFlagsSyn,
    this.tcpFlagsSynAck,
    this.tcpFlagsUrg,
    this.tcpFlagsPsh,
    this.tcpFlagsFin,
    this.tcpFlagsRst,
    this.totalPayloadBytes,
    this.totalPackets,
    this.totalBytes,
    this.isDangerous,
    this.paIsDangerous,
    this.updatedTime,
    this.startDate,
    this.endDate,
    this.queryCondition,
    this.baseModelForecastPrdList,
    this.dbytes,
    this.sbytes,
    this.spayloadBytes,
    this.spackets,
    this.dpayloadBytes,
    this.dpackets,
  });

  AiWarningItemList.fromJson(dynamic json) {
    currentPage = json['currentPage'];
    pageSize = json['pageSize'];
    id = json['id'];
    arkimeId = json['arkimeId'];
    esId = json['esId'];
    sip = json['sip'];
    spt = json['spt'];
    dip = json['dip'];
    dpt = json['dpt'];
    xffIp = json['xffIp'];
    arkimeStartTime = json['arkimeStartTime'];
    arkimeEndTime = json['arkimeEndTime'];
    protocols =
        json['protocols'] != null ? json['protocols'].cast<String>() : [];
    uri = json['uri'];
    warnTime = json['warnTime'];
    sceneType = json['sceneType'];
    tcpFlagsAck = json['tcpFlagsAck'];
    tcpFlagsSyn = json['tcpFlagsSyn'];
    tcpFlagsSynAck = json['tcpFlagsSynAck'];
    tcpFlagsUrg = json['tcpFlagsUrg'];
    tcpFlagsPsh = json['tcpFlagsPsh'];
    tcpFlagsFin = json['tcpFlagsFin'];
    tcpFlagsRst = json['tcpFlagsRst'];
    totalPayloadBytes = json['totalPayloadBytes'];
    totalPackets = json['totalPackets'];
    totalBytes = json['totalBytes'];
    isDangerous = json['isDangerous'];
    paIsDangerous = json['paIsDangerous'];
    updatedTime = json['updatedTime'];
    startDate = json['startDate'];
    endDate = json['endDate'];
    queryCondition = json['queryCondition'];
    baseModelForecastPrdList = json['baseModelForecastPrdList'];
    dbytes = json['dbytes'];
    sbytes = json['sbytes'];
    spayloadBytes = json['spayloadBytes'];
    spackets = json['spackets'];
    dpayloadBytes = json['dpayloadBytes'];
    dpackets = json['dpackets'];
  }
  num? currentPage;
  num? pageSize;
  num? id;
  String? arkimeId;
  String? esId;
  String? sip;
  String? spt;
  String? dip;
  String? dpt;
  String? xffIp;
  String? arkimeStartTime;
  String? arkimeEndTime;
  List<String>? protocols;
  String? uri;
  String? warnTime;
  String? sceneType;
  String? tcpFlagsAck;
  String? tcpFlagsSyn;
  String? tcpFlagsSynAck;
  String? tcpFlagsUrg;
  String? tcpFlagsPsh;
  String? tcpFlagsFin;
  String? tcpFlagsRst;
  String? totalPayloadBytes;
  String? totalPackets;
  String? totalBytes;
  String? isDangerous;
  String? paIsDangerous;
  String? updatedTime;
  dynamic startDate;
  dynamic endDate;
  dynamic queryCondition;
  dynamic baseModelForecastPrdList;
  String? dbytes;
  String? sbytes;
  String? spayloadBytes;
  String? spackets;
  String? dpayloadBytes;
  String? dpackets;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['currentPage'] = currentPage;
    map['pageSize'] = pageSize;
    map['id'] = id;
    map['arkimeId'] = arkimeId;
    map['esId'] = esId;
    map['sip'] = sip;
    map['spt'] = spt;
    map['dip'] = dip;
    map['dpt'] = dpt;
    map['xffIp'] = xffIp;
    map['arkimeStartTime'] = arkimeStartTime;
    map['arkimeEndTime'] = arkimeEndTime;
    map['protocols'] = protocols;
    map['uri'] = uri;
    map['warnTime'] = warnTime;
    map['sceneType'] = sceneType;
    map['tcpFlagsAck'] = tcpFlagsAck;
    map['tcpFlagsSyn'] = tcpFlagsSyn;
    map['tcpFlagsSynAck'] = tcpFlagsSynAck;
    map['tcpFlagsUrg'] = tcpFlagsUrg;
    map['tcpFlagsPsh'] = tcpFlagsPsh;
    map['tcpFlagsFin'] = tcpFlagsFin;
    map['tcpFlagsRst'] = tcpFlagsRst;
    map['totalPayloadBytes'] = totalPayloadBytes;
    map['totalPackets'] = totalPackets;
    map['totalBytes'] = totalBytes;
    map['isDangerous'] = isDangerous;
    map['paIsDangerous'] = paIsDangerous;
    map['updatedTime'] = updatedTime;
    map['startDate'] = startDate;
    map['endDate'] = endDate;
    map['queryCondition'] = queryCondition;
    map['baseModelForecastPrdList'] = baseModelForecastPrdList;
    map['dbytes'] = dbytes;
    map['sbytes'] = sbytes;
    map['spayloadBytes'] = spayloadBytes;
    map['spackets'] = spackets;
    map['dpayloadBytes'] = dpayloadBytes;
    map['dpackets'] = dpackets;
    return map;
  }
}
